package com.dragon.mmochat.model;

import com.dragon.mmochat.MmochatConstant;
import com.dragon.mmochat.model.enumType.MmochatFamilyType;

public class MmochatTempUserInfo {
	private long skyId;
	private int roleId;
	private int srcInstId = 0; // 当前服的实例号
	private int srcServerId; // 当前服的ID
	private String name;
	private int level;
	private MmochatFamilyType family;
	private long startTick = System.currentTimeMillis();
	private long life = MmochatConstant.roleLeaveGameTime;

	public long getSkyId() {
		return skyId;
	}

	public void setSkyId(long skyId) {
		this.skyId = skyId;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public int getSrcInstId() {
		return srcInstId;
	}

	public void setSrcInstId(int srcInstId) {
		this.srcInstId = srcInstId;
	}

	public int getSrcServerId() {
		return srcServerId;
	}

	public void setSrcServerId(int srcServerId) {
		this.srcServerId = srcServerId;
	}

	public long getStartTick() {
		return startTick;
	}

	public void setStartTick(long startTick) {
		this.startTick = startTick;
	}

	public long getLife() {
		return life;
	}

	public void setLife(long life) {
		this.life = life;
	}

	public boolean isTimeOut() {
		return System.currentTimeMillis() - startTick > life;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public MmochatFamilyType getFamily() {
		return family;
	}

	public void setFamily(MmochatFamilyType family) {
		this.family = family;
	}

}
